﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.OrganizationManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2023-04-11 22:01
    /// 描 述：租户表实体类
    /// </summary>
    [Table("SysTenant")]
    public class SysTenantEntity : BaseModifyEntity
    {
        /// <summary>
        /// 租户名
        /// </summary>
        /// <returns></returns>
        public string name { get; set; }
        /// <summary>
        /// 联系人的用户编号
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? contact_user_id { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        /// <returns></returns>
        public string contact_name { get; set; }
        /// <summary>
        /// 联系手机
        /// </summary>
        /// <returns></returns>
        public string contact_mobile { get; set; }
        /// <summary>
        /// 租户状态（0正常 1停用）
        /// </summary>
        /// <returns></returns>
        public byte? status { get; set; }
        /// <summary>
        /// 绑定域名
        /// </summary>
        /// <returns></returns>
        public string domain { get; set; }
        /// <summary>
        /// 租户套餐编号
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? package_id { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        /// <returns></returns>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? expire_time { get; set; }
        /// <summary>
        /// 账号数量
        /// </summary>
        /// <returns></returns>
        public int? account_count { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        /// <returns></returns>
        public bool? deleted { get; set; }

        public int type { get; set; }
    }
}
